import * as cookie from 'js-cookie'
import setting from '../settings'

export function setToken (value, time) {
  cookie.set(setting.sessionName, value, time)
}

export function getToken () {
  return cookie.get(setting.sessionName)
}

export function removeToken () {
  cookie.remove(setting.sessionName)
}
